package com.situ.mall.base.service;

import com.situ.mall.base.entity.Attachment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.mall.base.vo.ResVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author darling
 * @since 2023-03-21
 */
public interface IAttachmentService extends IService<Attachment> {

    List<Attachment> getList(Integer pId, String source);

    void updateSource(String ids, Integer pId);

    ResVO upload(MultipartFile file);

    List<Attachment> getBySourceAndSourceId(String source, Integer sourceId);



}
